package cn.Common.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Controller
public class Conterller {

    private static int num=1;
    private static List<Map<String,Object>> listmap=new ArrayList<>();


    @RequestMapping("ceshi")
    @ResponseBody
    public List<Map<String,Object>> Ceshi(){
        Map<String,Object> map=new HashMap<>();
        map.put(String.valueOf(num),num);
        num++;
        listmap.add(map);
        return  listmap;
    }
}
